package cn.liubanglong.i18n.orm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName test
 */
@TableName(value = "test")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TestEntity implements Serializable {
    /**
     * 唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     *
     */
    @TableField(value = "date_field")
    private Date dateField;

    /**
     *
     */
    @TableField(value = "date_time_field")
    private Date dateTimeField;

    /**
     *
     */
    @TableField(value = "timestamp_field")
    private Date timestampField;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}